<template>
  <div class="title">
    <span class="iconfont" :class="iconIcon"></span>
    <span class="main-topic">{{ mainTopic }}</span>
  </div>
</template>

<script>
export default {
  name: 'articleTitle',
  props: {
    iconIcon: {
      type: String,
      default () {
        return 'icon-huo'
      }
    },
    mainTopic: {
      type: String,
      default () {
        return '默认主题'
      }
    }
  }
}
</script>

<style scoped>
.title {
  margin-top: 40px;
  height: 40px;
  color: #666;
  font-size: 16px;
  padding:40px 0;
  width: 100%;
  border-bottom: rgba(0,0,0,0.1) dashed 1px;
}
.main-topic {
  padding-left: 5px;
  font-weight: bold;
}
</style>